<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php echo $this->Html->css(array('reset', 'cake.generic'));?>
<title><?php echo $title_for_layout;?> - Administrador SEC-SAP</title>
<?php  echo $this->Html->script(array('jquery', 'tiny_mce/tiny_mce.js'))?>
<script type="text/javascript">

tinyMCE.init({
		language : "pt",
        mode : "textareas",
        theme : "advanced",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left"
});

</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body><div>
	<?php
		echo $this->Session->flash();
	//	echo $this->Session->flash('email');
	//	echo $this->Session->flash('auth');
	?>
	</div>
	<div class=wrapper>
		<div class=header>
			<div id=logo></div>
			<div id=titulo>Administrador</div>
		</div>

		<div class="menu actions">
			<ul>
				<li><?php echo $this->Html->link('Usuários', '/admin/users', array('class'=>'menu'));?>
				</li>
				<li><?php echo $this->Html->link('Notícias', '/admin/noticias', array('class'=>'menu'));?>
				</li>
				<li><?php echo $this->Html->link('Assinantes', '/admin/assinantes', array('class'=>'menu'));?>
				</li>
				<li><?php echo $this->Html->link('Paginas', '/admin/paginas', array('class'=>'menu'));?>
				</li>
				<li><?php echo $this->Html->link('FAQ', '/admin/faqs', array('class'=>'menu'));?>
				</li>
				<li><?php echo $this->Html->link('Arquivos', '/admin/uploads', array('class'=>'menu'));?>
				</li>
				<li><?php echo $this->Html->link('Imagens', '/admin/imagems', array('class'=>'menu'));?>
				</li>
				<li><?php echo $this->Html->link('Menu', '/admin/menus', array('class'=>'menu'));?>
				</li>
				<li><?php echo $this->Html->link('Cidades', '/admin/cidades', array('class'=>'menu'));?>
				</li>
				<li><?php echo $this->Html->link('Sair', '/admin/users/logout', array('class'=>'menu'));?>
				</li>
			</ul>
		</div>
		<?php $session->flash(); ?>
		<?php $session->flash('auth'); ?>
		<div id="content">
		<?php echo $content_for_layout; ?>
		</div>
		<div style="clear: both;"></div>
		<div id=footer>
			<div id=copyright>© Copyright 2011, Sindicato dos Empregados do
				Comércio de Santo Antônio da Platina, PR</div>
			<div id=gwd>Desenvolvido por GWD Web</div>
			<div id=powered>
				Powered by
				<?php echo $this->Html->link(
				$this->Html->image('cake.power.gif', array('alt'=> __('CakePHP: the rapid development php framework', true), 'border' => '0')),
					'http://www.cakephp.org/',
				array('target' => '_blank', 'escape' => false)
				);
			?></div>
		</div>
	</div>

</body>
</html>
